package com.nuoniu.sibanyun.entity.erp;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.nuoniu.sibanyun.common.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
 * <p>
 * 凭证类别
 * </p>
 *
 * @author 小啊刚
 * @since 2021-03-31
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("fab_voucher_type")
@ApiModel(value="ErpVoucherClass对象", description="凭证类别")
public class ErpVoucherClass extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "账套id")
    @TableField("account_id")
    private Integer accountId;

    @ApiModelProperty(value = "公司id")
    @TableField("company_id")
    private Integer companyId;

    @ApiModelProperty(value = "类别字")
    @TableField("class_word")
    private String classWord;

    @ApiModelProperty(value = "类别名称")
    @TableField("class_name")
    private String className;

    @ApiModelProperty(value = "分类方式:1记账凭证2:收付转3:现银转4:现现银银转5:自定义")
    @TableField("class_method")
    private Integer classMethod;

    @ApiModelProperty(value = "限制类型:1无限制2:借方必有3:贷方必有4:凭证必无5:凭证必有6:借方必无7:贷方必无")
    @TableField("limit_type")
    private Integer limitType;

    @ApiModelProperty(value = "调整期")
    @TableField("adjustment_period")
    private String adjustmentPeriod;

    @ApiModelProperty(value = "限制科目id")
    @TableField("accounting_id")
    private String accountingId;

    @ApiModelProperty(value = "限制科目名称")
    @TableField("accounting_name")
    private String accountingName;

    @ApiModelProperty(value = "创建时间")
    @TableField("create_date")
    private LocalDateTime createDate;


}
